<%@ page import="org.example.User" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
demo222222<%=request.getParameter("age")%>

<%
    User user = new User();
    user.setAge(18);
    user.setName("tom");
    System.out.println(user.getName());
%>
<jsp:useBean id="u" class="org.example.User"></jsp:useBean>
<jsp:setProperty name="u" property="age" value="20"></jsp:setProperty>
<jsp:setProperty name="u" property="name" value="BOB"></jsp:setProperty>
<jsp:getProperty name="u" property="name"/>
</body>
</html>